FROM guosheng1987/php:7.4.22-fpm-buster

MAINTAINER guosheng1987 <guosheng1987@126.com>

# tideways_xhprof extension
RUN git clone https://github.com/tideways/php-xhprof-extension.git \
	&& ( \
		cd php-xhprof-extension \
		&& phpize \
		&& ./configure --with-php-config=/usr/local/bin/php-config \
		&& make -s -j$(nproc) && make install \
	) \
	&& echo "extension=tideways_xhprof.so" > /usr/local/etc/php/conf.d/docker-php-ext-tideways_xhprof.ini \
	&& php -m \
	&& echo -e "Tideways Xhprof Build Completed"


